#include <54func.h>
int main()
{
    int fds[2];
    //打开两个文件描述符 fds[0]:指向读端  fds[1]:指向写端
    pipe(fds);
    write(fds[1],"nihao",6);
    char buf[4096] = {0};
    read(fds[0],buf,sizeof(buf));
    printf("buf = %s\n",buf);
    
    return 0;
}
